import random

a = 1
b = lambda x: 1
print(callable(a), callable(b))


class A:
    pass


a = A()
print(f"{id(a) = }, {hash(a) = }")
if random.choice([True, False]):
    a.d = ["hello", "world"]
if not hasattr(a, "d"):
    setattr(a, "d", "default")
d = getattr(a, "d")
print(f"{d = }, {id(d) = }")
delattr(a, "d")
